import os
import subprocess

from Shell.core.conversation import clear_history


def clear_screen():
    try:
        # 清理屏幕
        if os.name == 'nt':
            subprocess.call('cls', shell=True)
        else:
            subprocess.call('clear', shell=True)
        # 清理聊天历史
        clear_history()
    except Exception as e:
        print(f"An error occurred: {e}")



